package evocarcassonne.tileseteditor.ui.swing.components;

import evocarcassonne.tileseteditor.ui.swing.ConnectionsManager;
import evocarcassonne.tileseteditor.managers.TileManager;
import javax.swing.JComboBox;

public class ZoneTypeComboBox extends JComboBox {

    public int card;
    public boolean userAction = true;

    public ZoneTypeComboBox(final int card) {        
        this.card = card;
    }

    public void resetFields() {
        ConnectionsManager.reset();
        TileManager.resetLinks();
    }

    public void setIndex(int i) {
        userAction = false;
        setSelectedIndex(i);
    }
}
